﻿/*
 * Copyright © 2020, Wuxi Safover Intelligent Technology Co., Ltd. All rights reserved.
 * 
 * 无锡安永智能科技有限公司版权所有，未经许可，不得用于商业用途
 * 
 * Visit: https://www.safover.com/ 
 */

namespace Safover.LidarCollector.Core
{
    public class ElectronicCompassReadingsUpdatedEventArgs : DeviceReadingsUpdatedEventArgs
    {
        public override DeviceType DeviceType => DeviceType.ElectronicCompass;

        /// <summary>
        /// 俯仰角
        /// </summary>
        public float PitchAngle { get; set; }

        /// <summary>
        /// 方位角
        /// </summary>
        public float HeadingAngle { get; set; }

        /// <summary>
        /// 横滚角
        /// </summary>
        public float RollAngle { get; set; }

        public override string ToString()
        {
            return $"PitchAngle={PitchAngle}, HeadingAngle={HeadingAngle}, RollAngle={RollAngle}.";
        }
    }

}
